{% if num_branches > 0  %}
    <p class="repo-message">
        {% if num_branches == 1 %}
            <i class="fa fa-quote-left"></i> This repository has 1 branch <i class="fa fa-quote-right"></i>
        {% else %}
            <i class="fa fa-quote-left"></i> This repository has {{num_branches}} branches <i class="fa fa-quote-right"></i>
        {% endif %}
    </p>
    <ul id="branches-list">
        {% for branch in branches %}
            {% if branch == HEAD %}
                <li><a class="yellow-color" href="/{{ repo_owner }}/{{ repo_name }}.git/tree/{{ branch }}">> {{ branch }} (is HEAD)</a></li>
            {% else %}
                <li><a href="/{{ repo_owner }}/{{ repo_name }}.git/tree/{{ branch }}">> {{ branch }}</a></li>
            {% endif %}
        {% endfor %}
    </ul>
{% else %}
    {% include 'base/repo-no-commits.html' %}
{% endif %}
